package com.jiazhong.cloud.example.student.commons.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.jiazhong.cloud.example.student.commons.util.JsonResult;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
public class Student implements Serializable {

    @TableId
    private String id; // 长整型
    private String name;
    private String stuNo;
    private String password;
    private String gender;
    private String birthday;
    private String placeOfOrigin; // 籍贯
    private String createTime; // 入学时间
    private String schoolId;
    private String courseId;
    private Integer state;

    // 描述专业的信息
    @TableField(exist = false)
    private JsonResult<Course> course;
    // 描述学校信息
    @TableField(exist = false)
    private JsonResult<School> school;
}
